package com.ruubypay.activiti.mapper;

import com.ruubypay.activiti.domain.InstanceBusiness;
import com.ruubypay.activiti.domain.TaskVo;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author Redick
 */

public interface TaskMapper {

    List<Map> findTodoList(TaskVo taskVo);
    Integer findTodoCount(TaskVo taskVo);
    List<Map> findDoneList(TaskVo taskVo);
    Integer findDoneCount(TaskVo taskVo);

    int insertInstanceBusiness(InstanceBusiness instanceBusiness);

    Map<String, Object> selectInstanceBusinessByInstanceId(String instanceId);

    Map<String, Object> selectBusinessByBusinessKeyAndModule(@Param("id") String id, @Param("module") String module);
}
